package com.dxysun.spring.service;

import org.springframework.stereotype.Service;

import javax.inject.Named;

//@Service
@Named("helloService")
//@ManagedBean("movieListener")
public class HelloService
{
    public HelloService()
    {
        System.out.println("HelloService init");
    }

    public String sayHello(String name)
    {
        return "hello " + name;
    }
}
